import request from '@/utils/request'

/**
 * 获取员工列表
 * @param { page, pageSize, name} params
 * @returns
 */
export function getEmployeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    params
  })
}

// 添加
export function createEmployeeAPI(data) {
  return request({
    url: `/park/sys/user`,
    method: 'POST',
    data
  })
}

// 删除
export function delEmployeeAPI(id) {
  return request.delete(`/park/sys/user/${id}`)
}

// 编辑
export const editEmployeeAPI = (data) => {
  return request.put('/park/sys/user', data)
}

// 详情
export const lookEmployeeAPI = (id) => {
  return request(`/park/sys/user/${id}`)
}
